package com.project.demo.dao;

import com.project.demo.dao.base.BaseMapper;
import com.project.demo.entity.HomestayOrders;
import com.project.demo.entity.vo.StatisticsVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import javax.xml.crypto.Data;
import java.util.Date;
import java.util.List;

/**
 * 民宿订单：(HomestayOrders)Mapper接口
 *
 */
@Mapper
public interface HomestayOrdersMapper extends BaseMapper<HomestayOrders>{
    List<HomestayOrders> selectByUserId(Integer userId, Date orderDate);

    List<StatisticsVo> statistics(@Param("startTime") String startTime, @Param("endTime") String endTime,@Param("nameOfHomestay") String nameOfHomestay);
}
